<?php
/**
 * redirectView
 *
 * Vue appelée pour la redirection
 *
 * @package bottleneck
 * @subpackage core
 * @subpackage view
 * @author Thomas Lenoel
 * @copyright 2010 Thomas Lenoel
 * @version 0.1
 * @license http://www.gnu.org/licenses/gpl.html GNU General Public License version 3
 */
class redirectView extends bView {

    public $action;

    public function render() {
        if (!empty($this->action)) header('Location:'.$_SERVER['SCRIPT_NAME'].'/'.$this->action);
        bError::actionNotExist();
    }
}
?>
